package com.yp.infrastructure.mdb.exception;

import com.yp.infrastructure.common.exception.IErrorMessage;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

/**
 * 错误消息定义,关联至Localization.
 * Created by tju on 10/8/15.
 * 1. 来源(a)
 * 2. 业务类型(bb)
 * 3. 错误编号(cc)
 * 3. a-bb-cc
 */
@Getter
@AllArgsConstructor
@NoArgsConstructor
public enum EnumErrorMessage implements IErrorMessage {
    SQL_ERROR(10, "db.sql.error", "SQL错误"),
    ;
    private int code;
    private String i18n;
    private String msg;

}
